// Bootstrap + FontAwesome
@import "/bootstrap/bootstrap.less";
@import "/bootstrap/responsive.less";

// Webfonts
@import url(//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,400,300,700);

// Colors
@brand: #F19324;
@graylight: #999;
@brandLight: lighten(@brand, 10);

@innovaclub: #e20613;

@complementary: spin(@brand, 210);
@complementaryDark: darken(@complementary, 20);
@complementaryDarker: darken(@complementary, 40);

@facebook-color: #3B5998;
@googlePlus-color: #C63D2D;
@linkedin-color: #4875B4;
@tumblr-color: #2B4964;
@twitter-color: #33CCFF;
@vimeo-color: #86B32D;
@youtube-color: #FF3333;

// Overrides
@sansFontFamily: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
@linkColor: @brand;
@headingsFontWeight: normal;

h1, h2, h3, h4, h5, h6 {
	line-height: 1.2;
}


// Styles

body {
	background: url(../img/noisy-texture.png);
}

.btn {
	background-color: @graylight;
	color: #FFF;
	background-image: none;
	border: 1px solid @graylight;
	text-shadow: none;
	-webkit-transition: all .25s ease-in;
	   -moz-transition: all .25s ease-in;
	    -ms-transition: all .25s ease-in;
	     -o-transition: all .25s ease-in;
	        transition: all .25s ease-in;
}

.nav-pills > li > a {
	border-radius: 6px;
	padding: 10px 20px;
	margin-left: 4px;
}

.nav > li > a.btn:hover,
.btn:hover {
	background-color: #777;
	color: #FFF;
	border-color: #666;
}

.btn.btn-primary {
	background-color: @brand;
	text-shadow: 0 -1px 1px rgba(0, 0, 0, 0.4);
	border: 1px solid #B96E00;
	#gradient.vertical(#FEB037, @brand);
}

.nav > li > a.btn-primary:hover,
.btn-primary:hover {
	background-color: @brand;
	border-color: #865000;
}



// Barra de red innova
.innova-bar {

	.nav-tabs {
		margin-bottom: 0;
		border-bottom: none;

		> li {
			> a {
				background: transparent;
				border: 2px solid transparent;
				border-radius: 0;
				padding: 8px 0 0;
				margin: 0 5px;

				&.icon-stack {
					width: 1em;
					height: 1em;
					line-height: 1em;
				}
			}

			&.active > a {
				border-top: 2px solid @brand;
				position: relative;

				&:hover {
					border-color: @brand transparent transparent;
					background-color: transparent;
				}
			}
		}
	}
}

a.innovaclub { color: @innovaclub; }

// Header
.masthead {
	padding: 1.5em 0 0;

	.nav {
		margin-bottom: 0;
		margin-top: 0.6em;
	}

	.logo-area {
		position: relative;
		float: left;
		width: 360px;
		margin-bottom: 3em;
	}

	.dropdown {
		position: absolute;
		top: 20px;
		left: 275px;
		border: 1px solid transparent;
		border-radius: 4px;
		padding: 2px 0;

		.caret {
			border-color: @graylight transparent transparent;
			margin-left: -2px;
		}
	}

	.dropdown-toggle {
		font-size: 18px;
		font-weight: 100;
		color: @graylight;
		padding: 2px 5px;
	}

	.dropdown:hover,
	.open .dropdown {
		text-decoration: none;
		border-color: lighten(@graylight, 25%);
	}

	.dropdown-toggle:hover,
	.open .dropdown-toggle {
		text-decoration: none;
	}

}

section {
	// background: url(../img/section-deg.png) top left repeat-x;
	margin-bottom: 2em;
	padding: 1em 0;
	
	&.nobg {
		background: none;
	}
	
	h2 {
		margin-bottom: .5em;
		font-weight: 300;
		// font-style: italic;
		text-transform: uppercase;

		color: #555555;
	}

	.nav {
		margin-top: .5em;
		margin-bottom: 0;
	}
}

/* Busqueda principal */
.main-search { 
	margin-bottom: 0;
	padding: 0;

	form {
		margin: 30px 0 10px;
		overflow: hidden;
	}

	input {
		width: 60%;
		margin-right: 2%;
		padding: 15px 2%;
		font-size: 18px;

		&::-webkit-input-placeholder {
			font-style: italic;
			font-weight: 100;
		}

		&:-moz-placeholder {
			font-style: italic;
			font-weight: 100;
		}

		&::-moz-placeholder {
			font-style: italic;
			font-weight: 100;
		}

		&:-ms-input-placeholder {
			font-style: italic;
			font-weight: 100;
		}
	}

	button {
		width: 33%;
		padding: 16px 2%;
		font-size: 24px;
	}

	&.destacada {
		#gradient.vertical(#444,#222);

		p {
			color: #FFF;
			text-align: center;
			margin: 15px 0 25px;
			font-size: 18px;
			font-weight: 100;
		}
	}
}

.results-region .main-search form { margin: 0 0 10px; }

/* Explorador home */
.browser {
	margin-top: 20px;

	.container {
		border: 1px solid #DDD;
		background: #FFF;
		border-radius: @baseBorderRadius;
	}

	h5 {
		font-weight: bold;
		color: @graylight;
		text-transform: uppercase;
	}

	ul {
		width: 40%;
		float: left;

		a {
			color: #555;
		}

		.extra {
			color: @graylight;
		}
	}

	.localidad .browser-inner { padding: 15px 0 30px 40px; }
	.categoria .browser-inner { padding: 15px 40px 30px 0; }

	.second {
		margin-right: 20%;
	}
}

/* Listado de Avisos */
.avisos {

	li { margin: 20px 0; }

	h3 {
		margin: 0;
		font-size: 16px;
		line-height: 1.2;
	}

	h4 {
		margin: 0;
		font-size: 16px;
		line-height: 1.2;
	}

	p {
		margin: 5px 0;
	}

	.meta {
		overflow: hidden;
		color: #999;

		span {
			margin-right: 10px;
		}
	}

	&.destacados {
		li {
			overflow: hidden;
		}

		.img-container,
		.aviso-container {
			float: left;
		}

		.aviso-container {
			width: 73%;
			margin-left: 15px;
		}

		h3 {
			font-size: 21px;
		}
	}

	&.ultimos {

		margin-top: 40px;

		h2 { font-size: 18px;}
	} 

	.aviso-curso {
		a {
			color: @innovaclub;
		}
	}

	.meta .curso-label {
		text-transform: uppercase;
		font-weight: bold;
		color: #999;
		margin-right: 5px;
	}
}

.iclub-widget {
	h3 a {
		color: @innovaclub;
	}
}

footer {
	background: #e5e5e5;
	border-top: 2px solid #ddd;
	color: @grayLight;

	margin-top: 4em;
	padding: 4em 0;

	.header-icon {
		color: #ccc;
		.icon-stack-base { 
			color: #fff;
			text-shadow: 0 1px 1px rgba(0,0,0,.3);
		}
	}

	.nav {
		border-top: 1px solid #ccc;
		border-bottom: 1px solid #ccc;
		margin-bottom: 2em;
		padding: 5px 15px;

		> li > a {
			color: inherit;
		}
	}

	hr {
		border-top: 1px solid #ccc;
		border-bottom: 1px solid #eee;
	}

	form {
		button {

		}
	}

	.innova-banner {
		background-color: #F5F5F5;
		padding: 10px;
		border-radius: 8px;
		margin: 30px 0 -20px;
		text-align: center;

		img {
			margin: 4px 0;
		}
	}
}

// Botones home

.ver-destacados {
	padding: 10px 40px;
	margin-left: 135px;
}

.ver-todos {
	padding: 10px 100px;
}

// Modales home

.modal-registro {
	width: 650px;
	margin-left: -325px;

	h4 {
		margin-bottom: 30px;
	}

	.modal-first-col {
		float: left;
		width: 48%;
		border-right: 1px solid #EEE;
		margin-right: 3%;
	}

	.modal-second-col {
		float: left;
		width: 48%;
		text-align: center;
	}

	.modal-input {
		width: 256px;
	}

	.btn-primary {
		padding: 10px 50px;
		margin: 10px 0 20px;
	}

	small {
		display: block;
		line-height: 1.2;
		margin: 10px 0;
	}

	.modal-first-col small {
		margin-right: 20px;
	}

	.login-fb {
		margin-top: 54px;

		.btn { background-color: @facebook-color; }
	}

	.login-already {
		margin-top: 58px;
	}

}

.modal-cargar-cv {
	width: 460px;
	margin-left: -230px;

	.input-file-image {
		cursor: pointer;
		background: url(../img/upload.png) no-repeat top left;
		width: 210px;
		height: 200px;
		margin: 60px auto;
	}

}

.modal-login {
	width: 460px;
	margin-left: -230px;

	input {
		display: block;
		width: 100%;
	}

	.fields-container {
		margin: 0 15px 30px 0;

		input {
			padding: 10px 6px;
		}
	}

	.btn-primary {
		margin-bottom: 15px;
	}

}

// Breadcrumb

.breadcrumb {
	background-color: transparent;
	padding: 0;

	li:after {
		content: ">";
	}

	li:last-child:after {
		content: "";
	}

	a {
		color: #333;
		padding: 10px 5px 10px 0;
	}

	a.btn {
		color: #FFF;
		padding: 5px 10px;
		margin-right: 5px;
	}

	a:not(.btn):hover {
		color: @brand;
	}

}

// Resultados

.filtro-fecha {
	a {
		color: #555;

		.nuevos {
			color: #009245;
		}
	}
}

.ver-cursos {
	margin: 20px 15px 40px;
}

.resultados-count {
	font-size: 18px;
	margin-bottom: 30px;

	small {
		font-size: 12px;
		font-weight: bold;
	}
}

.pager {
	text-align: left;
	margin-left: 340px;

	li {
		font-size: 18px;
		margin: 0 -2px;
	}


	li > a{
		padding: 12px 12px;
		background-color: transparent;
		border: none;
	}

	.selected {
		padding: 15px 10px;
	}

	li:first-child {
		margin-left: -10px;
	}
}

.relacionados-container {

	h3 {
		font-size: 21px;
		margin: 0;
	}

	a {
		color: @innovaclub;
	}
}

// Aviso - Detalle
.aviso {
	h4 {
		color: @graylight;
		font-size: 18px;
		margin-bottom: 30px;
	}

	p {
		font-size: 18px;
	}

	.main-actions {
		margin: 30px 0 0;
		border-bottom: 1px solid #DDD;
		padding-bottom: 15px;
	}

	.main-actions .btn { float: left; }
	.main-actions .share { float: right; }

	.share ul {
		display: inline-block;
		margin: 0;
	} 

	.share li {
		display: inline-block;
	}

	.btn-primary {
		background-color: #F19324;
		padding: 15px 60px;
		font-size: 21px;
	}
}

.tabla-detalles,
.cursos-relacionados {
	margin-top: 40px;

	h3 {
		font-size: 18px;
	}
}

.tabla-detalles {
	table { width: 100%; }

	td, th {
		padding: 8px 0;
		border: 1px solid #DDD;
		border-style: solid none;
	}

	th {
		text-align: left;
		font-weight: normal;
		color: @graylight;
		width: 90px;
	}

	.extra-data {
		color: @graylight;
	}
}

.side-box {
	padding: 1.5em 2em;
	border: 1px solid #DDD;
	border-radius: 4px;
	background: #FFF;
	margin-bottom: 20px;

	h3 {
		font-size: 18px;
		color: #555555;
		margin-top: 0;
	}

	.btn {
		display: block;
		padding: 15px;
		margin: 20px 0 0;
	}
}


.ad-container { text-align: center; }
.ad-horizontal {
	width: 728px;
	height: 90px;
	margin: 0 auto;
	background-color: #8A2BE2;
}

.ad-lateral {
	width: 300px;
	height: 250px;
	background-color: #29ABE2;
}

// Social icons
a.social.icon-stack {
	text-decoration: none;
	color: @gray;

	.icon-stack-base { .transition(color .1s linear); }

	&:hover {
		&.facebook 		{ .icon-stack-base { color: @facebook-color; } }
		&.google		{ .icon-stack-base { color: @googlePlus-color; } }
		&.linkedin		{ .icon-stack-base { color: @linkedin-color; } }
		&.tumblr		{ .icon-stack-base { color: @tumblr-color; } }
		&.twitter		{ .icon-stack-base { color: @twitter-color; } }
		&.vimeo			{ .icon-stack-base { color: @vimeo-color; } }
		&.youtube		{ .icon-stack-base { color: @youtube-color; } }
	}
}

// UI Headers icons
.header-icon {
	width: 100%;
	text-align: center;
	font-size: 2em;

	margin-bottom: @baseFontSize;
}

// Cursos
.courses-cards {
	margin-top: 2em;

	.thumbnail {
		padding: 0;
		background: #fff;

		img {
			.border-top-radius(@baseBorderRadius - 1px);
		}

		.caption {
			padding: 0 1em .5em;

			h3 {
				line-height: 1.2em;
			}

			.meta {
				.clearfix();

				color: @grayLight;
			}
		}
	}
}

// Registro
.unshown {
	visibility: hidden;
}

.req {
	color: @errorText;
	font-weight: bold;
}

.form-row {
	margin-bottom: 20px;
}

.datos-personales {

	h1 {
		margin-bottom: 40px;
	}

	.inline {
		display: inline-block;
		margin-right: 20px;

		input {
			margin-top: -4px;
		}
		
	}
}

.alert-success {

	h2 {
		margin-bottom: 0;
		font-weight: 400;
		text-transform: none;
	}

	.icon-ok {
		font-size: 50px;
		border: 1px solid;
		border-radius: 50px;
		padding: 5px;
		float: left;
		margin: 10px 10px;
	}

}

// Vista de descripcion de curso

.course-header {
	height: 200px;
	margin-bottom: -130px;
	// -webkit-filter: blur(4px);
}

.course {
	background: none;
	// background: @complementaryDark url(../img/noisy-texture.png);
	
	// padding: 2em 0;

	// margin-bottom: 0;
	// border-top: 1px solid white;
	// border-bottom: 1px solid @complementaryDarker;

	.course-wrap {
		background: #fff;
		padding: 2em;
		border-top: 1px solid @complementary;
		.border-radius(5px);
		.box-shadow(0 3px 5px rgba(0,0,0,.2));
		position: relative;
		
		p, li { line-height: 1.8em; }
	
		h1, h2, h3 {
			font-weight: 300;
			text-transform: none;
		}

		h1 {
			margin: 0 2em .3em 0;
			line-height: 1.3em;
		}

		h2 { 
			margin: 1em 0 .5em;
		}
	}

	@media (max-width: 480px) {
		.course-wrap {
			margin-left: -20px;
			margin-right: -20px;
		}
	}

	.course-sidebar {
		.info-box {
			background: #fff;
			.box-shadow(0 3px 5px rgba(0,0,0,.2));
		}
	}

	.breadcrumb {
		background: none;
		padding: 0;

		a {
			color: @grayLight;
		}
	}
	

	.edition {
		position: absolute;
		.size(4.5em, 4em);
		top: -5px;
		right: 2em;

		background: @complementary;
		color: #fff;
		text-shadow: 0 1px 1px @complementaryDark;
		
		.box-shadow(0px 5px 10px fadeout(@complementaryDark, 70%));

		.border-top-left-radius(3px);
		font-size: @baseFontSize;
		text-align: center;

		em {
			display: block;
			
			font-size: 2em;
			line-height: 1;
			font-style: normal;
			font-weight: 100;
			margin-top: .3em;
		}	

		&:before,
		&:after {
			content: '';
			position: absolute;
		}
		
		&:before {
			top: 0px;
			left: 100%;
			border-left: 5px solid @complementaryDark;
			border-top: 5px solid transparent;
		}

		&:after {
			border-top: 1em solid @complementary;
			border-right: 2em solid transparent;
			border-left: 2em solid transparent;
			top: 100%;
			left: 0;
		}
	}

	.img-wrap {
		margin: 1em -2em 2em;
	}
}

.call-to-action {
	display: block;
	width: 90%;
	margin: 1em 5%;
	padding: 1em;
	.box-sizing(border-box);
	// text-transform: uppercase;
}


// Sidebar 
.course-sidebar {
// 	position: absolute;
}

// 	@media (max-width: 767px) {
// 		.course-sidebar { position: static; }
// 	}

.info-box {
	border-top: 1px solid @grayLighter;
	padding: 1em 1.5em;
	margin-bottom: 3em;
	background: #fff;

	.border-radius(2px);

	// .box-shadow(0 3px 10px fadeout(@complementaryDark, 80%));

	.box-head {
		font-size: 2em;
		margin-top: -1em;
		margin-bottom: 5px;
		line-height: 2em;
		height: 2em;
		text-align: center;
		// outline: 1px solid red;
		
		span {
			display: inline-block;
			width: 1.5em;
			height: 1.5em;
			line-height: 1.5em;
			background: #fff;
			border: 2px solid @grayLighter;
			.border-radius(50%);

			i {
				color: @grayLight;
			}
		}

		img {
			height: 2em;
			.border-radius(50%);
			vertical-align: baseline;
			border: 2px solid @grayLighter;
		}
	}

	.section {
		border-top: 1px solid @grayLighter;
		margin: 0.5em -1.5em 0;
		padding: 0.5em 1em 0;

		&:first-of-type{
			padding-top: 0;
			border-top: none;
		}
	}

	&.indicator-left,
	&.indicator-right {
		position: relative;

		&:before,
		&:after {
			content: '';
			display: block;
			position: absolute;

			width: 0; 
			height: 0; 
			top: 30px;
			left: -15px;

			border-top: 15px solid transparent;
			border-bottom: 15px solid transparent;
			
			border-right: 15px solid @grayLighter;
		}
		&:after {
			border-right-color: #fff;

			left: -10px; 
		}
	}
	&.indicator-right {
		&:before,
		&:after {
			left: auto;
			right: -15px;
			border-right: none;
			border-left: 15px solid @grayLighter;
		}
		&:after {
			right: -10px;
			border-left-color: #fff;
		}
	}
}

	@media (max-width: 767px) {
		.course-sidebar { padding-top: 3em; }
	}

.course-details {
}

.course-teachers {
	padding-top: 2em;
	padding-bottom: 2em;

	.teacher {
		display: block;
		text-align: center;
		margin-bottom: 1em;

		img { 
			display: block; 
			margin: 0 auto;
		}
	}
}

	@media (max-width: 767px) {
		.course-teachers .teacher {
			display: inline-block;
			margin-right: 2em;
		}
	}
	@media (max-width: 480px) {
		.course-teachers .teacher {
			display: block;
			margin-right: auto;

			img { display: inline-block; }
		}
	}

.endorsements {
	.carousel {
		margin: 0;
	}

	blockquote {
		margin: 0;
		padding: 0;
		border: none;

		p {
			font-style: italic;
		}
		small {
			text-align: right;
		}
	}
}

.results-filter {
	padding: 1em;
	border: 1px solid #DDD;
	border-radius: 4px;
	background: #FFF;

	h4 {
		font-size: 22px;
	}

	h5 {
		font-weight: bold;
		color: @graylight;
		text-transform: uppercase;
		margin: 20px 0 0;
	}

	ul {
		list-style: none;
		margin: 0 -1em;

		li {
			margin: 0;

			label {
				padding: .2em 1em;
				margin: 0;

				&:hover {
					background: @grayLighter;
				}

				&.checked { font-weight: bold; }
				
				input[type=checkbox] {
					margin-left: 0;
					margin-right: 10px;
				}

				.badge { 
					float: right;
					font-weight: normal;
					background: @grayLighter;
					color: @grayLight
				}
			}
		}
	}
}

.search-results {

	.courses-cards {
		margin-top: 0;
	}
}

.top-fold {
	position: relative;
	background: none;

	border-top: 1px dashed #eee;

	&:before {
		content: '';
		display: block;
		width: 100%;
		height: 20px;

		position: absolute;
		top: 0;
		left: 0;

		#gradient > .vertical(rgba(255,255,255,.0), rgba(255,255,255,.3));
		box-shadow: 0 -10px 20px rgba(0,0,0,.04);
	}
	&:after {
		content: '';
		display: block;
		width: 100%;
		height: 0px;

		position: absolute;
		bottom: 100%;
		left: 0;
		margin-bottom: -30px; 

		border-width: 30px 5px;
		border-style: solid;
		border-color: transparent #aaa;
		.box-sizing(border-box);
	}
}

.text-center { text-align: center; }

section.about {
	p {
		line-height: 1.8;
	}
	hr {
		margin: 4em auto;
		width: 20%;
		border-top-color: #ddd;
	}
}

// Publicar aviso

.sidebar {
	padding-left: 20px;
}

input.input-title {
	font-size: 21px;
	padding-top: 8px;
	padding-bottom: 10px;
}

.tooltip-trigger {
	padding: 0 5px;
}

.help-block {
	font-size: 12px;
	color: #999;
}

.publicar-aviso {
	margin-bottom: 10px;
}

.otros-medios input[type="checkbox"] {
	margin: -2px 0 0;
}

.input-otro {
	margin: 3px;
	width: 415px;
}

.como-destacar {
	margin-top: 70px;
	background-color: #D8ECF5;
	border-color: #94cbe4;

	ul {
		margin-left: 20px;
	}
}

// Pagina estática

.intro {
	font-size: 18px;
	line-height: 1.4;
}

.static-page {

	h2, h3 {
		margin: 2rem 0 .5rem;
	}

	h2 {
		text-transform: none;
		font-weight: 400;
	}

	.side-box h2,
	.side-box h3 {
		margin: 0 0 .5rem;
	}

}